package com.clock.in.vo;

import lombok.Data;

/**
 * @author yinxing
 * @date 2022-09-14
 */
@Data
public class AjaxResult {

    private String message ;

    private Integer code ;

    private Boolean success ;

    public static AjaxResult success(String message) {
        AjaxResult ajaxResult = new AjaxResult();
        ajaxResult.setCode(200);
        ajaxResult.setMessage(message);
        ajaxResult.setSuccess(true);
        return ajaxResult;
    }
}
